package com.mrjy.aiui.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mrjy.aiui.bo.IAiuiBo;
import com.mrjy.aiui.dto.AiuiRecordInfoDTO;
import com.mrjy.maintain.dto.TeacherInfoDTO;

@Controller
@RequestMapping("/aiui")
public class AiuiController {
	@Resource
	private IAiuiBo aiuiBo ;
	
	@RequestMapping("/textSemantic")
	@ResponseBody
	public Object textSemantic(String userId , String scene , String txt,String smsType,String flag , String sessionId){
		
		return aiuiBo.textSemantic(userId , scene , txt , smsType,flag ,sessionId) ;
	}
	
	@RequestMapping("/getChatHistory")
	@ResponseBody
	public Object getChatHistory(AiuiRecordInfoDTO dto){
		return aiuiBo.getChatHistory(dto) ;
	}
	
	@RequestMapping("/getTeacherList")
	@ResponseBody
	public Object getTeacherList(TeacherInfoDTO dto){
		return aiuiBo.getTeacherList(dto) ;
	}
}
